package com.ibsol.model
{
	[Bindable]
	[RemoteClass(alias="com.ibsol.tourix.model.Transaction")]
	public class Transaction
	{
		private var _id:int;
		private var _packageid:int;
		private var _uid:int;
		private var _departureDate:String;
		private var _numCustomer:int;
		private var _cid:int;
		private var _remarks:String;
		private var _price:Number;
		private var _discount:Number;
		private var _refNo:String;
		private var _tranTime:String;
		private var _offlineOpeartor:String;
		private var _updateTime:String;
		private var _pairid:String;
		//attributes not in transaction table
		private var _packageName:String;
		private var _customerName:String;
		private var _mobile:String;
		
		public function Transaction()
		{
			_id = 0;
			_packageid = 0;
			_uid = 0;
			_departureDate = "";
			_numCustomer = 0;
			_cid = 0;
			_remarks = "";
			_price = 0;
			_discount = 0;
			_refNo = "";
			_tranTime = "";
			_offlineOpeartor = "";
			_updateTime = "";
			_pairid = "";
			//attributes not in transaction table
			_packageName = "";
			_customerName = "";
			_mobile = "";
		}
		
		public function set id(value:int):void{
			this._cid = value;
		}
		public function set packageid(value:int):void{
			this._packageid = value;
		}
		public function set uid(value:int):void{
			this._uid = value;
		}
		public function set departureDate(value:String):void{
			this._departureDate = value;
		}
		public function set numCustomer(value:int):void{
			_numCustomer= value;
		}
		public function set cid(value:int):void{
			_cid = value;
		}
		public function set remarks(value:String):void{
			this._remarks = value;
		}
		public function set price(value:Number):void{
			this._price = value;
		}
		public function set discount(value:Number):void{
			this._discount = value;
		}
		public function set refNo(value:String):void{
			this._refNo = value;
		}
		public function set tranTime(value:String):void{
			this._tranTime = value;
		}
		public function set offlineOpeartor(value:String):void{
			this._offlineOpeartor = value;
		}
		public function set updateTime(value:String):void{
			this._updateTime = value;
		}
		public function set pairid(value:String):void{
			this._pairid = value;
		}
		public function set packageName(value:String):void
		{
			this._packageName = value;
		}
		public function set customerName(value:String):void
		{
			this._customerName = value;
		}
		public function set mobile(value:String):void
		{
			this._mobile = value;
		}
		//Get method
		public function get id():int{
			return this._cid;
		}
		public function get packageid():int{
			return this._packageid;
		}
		public function get uid():int{
			return this._uid;
		}
		public function get departureDate():String{
			return this._departureDate;
		}
		public function get numCustomer():int{
			return _numCustomer;
		}
		public function get cid():int{
			return _cid;
		}
		public function get remarks():String{
			return this._remarks;
		}
		public function get price():Number{
			return this._price;
		}
		public function get discount():Number{
			return this._discount;
		}
		public function get refNo():String{
			return this._refNo;
		}
		public function get tranTime():String{
			return this._tranTime;
		}
		public function get offlineOpeartor():String{
			return this._offlineOpeartor;
		}
		public function get updateTime():String{
			return this._updateTime;
		}
		public function get pairid():String{
			return this._pairid;
		}
		public function get packageName():String
		{
			return this._packageName;
		}
		public function get customerName():String
		{
			return this._customerName;
		}
		public function get mobile():String
		{
			return this._mobile;
		}
	}
}